{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\n// ============================== Shared ==============================\nvar genSharedBackTopStyle = function genSharedBackTopStyle(token) {\n  var _Object$assign;\n  var componentCls = token.componentCls,\n    backTopFontSize = token.backTopFontSize,\n    backTopSize = token.backTopSize,\n    zIndexPopup = token.zIndexPopup;\n  return _defineProperty({}, componentCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    position: 'fixed',\n    insetInlineEnd: token.backTopInlineEnd,\n    insetBlockEnd: token.backTopBlockEnd,\n    zIndex: zIndexPopup,\n    width: 40,\n    height: 40,\n    cursor: 'pointer',\n    '&:empty': {\n      display: 'none'\n    }\n  }, _defineProperty(_Object$assign, \"\".concat(componentCls, \"-content\"), {\n    width: backTopSize,\n    height: backTopSize,\n    overflow: 'hidden',\n    color: token.backTopColor,\n    textAlign: 'center',\n    backgroundColor: token.backTopBackground,\n    borderRadius: backTopSize,\n    transition: \"all \".concat(token.motionDurationMid),\n    '&:hover': {\n      backgroundColor: token.backTopHoverBackground,\n      transition: \"all \".concat(token.motionDurationMid)\n    }\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-icon\"), {\n    fontSize: backTopFontSize,\n    lineHeight: \"\".concat(backTopSize, \"px\")\n  }), _Object$assign)));\n};\nvar genMediaBackTopStyle = function genMediaBackTopStyle(token) {\n  var _ref2;\n  var componentCls = token.componentCls;\n  return _ref2 = {}, _defineProperty(_ref2, \"@media (max-width: \".concat(token.screenMD, \"px)\"), _defineProperty({}, componentCls, {\n    insetInlineEnd: token.backTopInlineEndMD\n  })), _defineProperty(_ref2, \"@media (max-width: \".concat(token.screenXS, \"px)\"), _defineProperty({}, componentCls, {\n    insetInlineEnd: token.backTopInlineEndXS\n  })), _ref2;\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('BackTop', function (token) {\n  var fontSizeHeading3 = token.fontSizeHeading3,\n    colorTextDescription = token.colorTextDescription,\n    colorTextLightSolid = token.colorTextLightSolid,\n    colorText = token.colorText,\n    controlHeightLG = token.controlHeightLG;\n  var backTopToken = mergeToken(token, {\n    backTopBackground: colorTextDescription,\n    backTopColor: colorTextLightSolid,\n    backTopHoverBackground: colorText,\n    backTopFontSize: fontSizeHeading3,\n    backTopSize: controlHeightLG,\n    backTopBlockEnd: controlHeightLG * 1.25,\n    backTopInlineEnd: controlHeightLG * 2.5,\n    backTopInlineEndMD: controlHeightLG * 1.5,\n    backTopInlineEndXS: controlHeightLG * 0.5\n  });\n  return [genSharedBackTopStyle(backTopToken), genMediaBackTopStyle(backTopToken)];\n}, function (token) {\n  return {\n    zIndexPopup: token.zIndexBase + 10\n  };\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","resetComponent","genSharedBackTopStyle","token","componentCls","backTopFontSize","backTopSize","zIndexPopup","Object","assign","position","insetInlineEnd","backTopInlineEnd","insetBlockEnd","backTopBlockEnd","zIndex","width","height","cursor","display","overflow","color","backTopColor","textAlign","backgroundColor","backTopBackground","borderRadius","transition","motionDurationMid","backTopHoverBackground","fontSize","lineHeight","genMediaBackTopStyle","screenMD","backTopInlineEndMD","screenXS","backTopInlineEndXS","fontSizeHeading3","colorTextDescription","colorTextLightSolid","colorText","controlHeightLG","backTopToken","zIndexBase"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/back-top/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\n// ============================== Shared ==============================\nconst genSharedBackTopStyle = token => {\n  const {\n    componentCls,\n    backTopFontSize,\n    backTopSize,\n    zIndexPopup\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'fixed',\n      insetInlineEnd: token.backTopInlineEnd,\n      insetBlockEnd: token.backTopBlockEnd,\n      zIndex: zIndexPopup,\n      width: 40,\n      height: 40,\n      cursor: 'pointer',\n      '&:empty': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        width: backTopSize,\n        height: backTopSize,\n        overflow: 'hidden',\n        color: token.backTopColor,\n        textAlign: 'center',\n        backgroundColor: token.backTopBackground,\n        borderRadius: backTopSize,\n        transition: `all ${token.motionDurationMid}`,\n        '&:hover': {\n          backgroundColor: token.backTopHoverBackground,\n          transition: `all ${token.motionDurationMid}`\n        }\n      },\n      // change to .backtop .backtop-icon\n      [`${componentCls}-icon`]: {\n        fontSize: backTopFontSize,\n        lineHeight: `${backTopSize}px`\n      }\n    })\n  };\n};\nconst genMediaBackTopStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`@media (max-width: ${token.screenMD}px)`]: {\n      [componentCls]: {\n        insetInlineEnd: token.backTopInlineEndMD\n      }\n    },\n    [`@media (max-width: ${token.screenXS}px)`]: {\n      [componentCls]: {\n        insetInlineEnd: token.backTopInlineEndXS\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('BackTop', token => {\n  const {\n    fontSizeHeading3,\n    colorTextDescription,\n    colorTextLightSolid,\n    colorText,\n    controlHeightLG\n  } = token;\n  const backTopToken = mergeToken(token, {\n    backTopBackground: colorTextDescription,\n    backTopColor: colorTextLightSolid,\n    backTopHoverBackground: colorText,\n    backTopFontSize: fontSizeHeading3,\n    backTopSize: controlHeightLG,\n    backTopBlockEnd: controlHeightLG * 1.25,\n    backTopInlineEnd: controlHeightLG * 2.5,\n    backTopInlineEndMD: controlHeightLG * 1.5,\n    backTopInlineEndXS: controlHeightLG * 0.5\n  });\n  return [genSharedBackTopStyle(backTopToken), genMediaBackTopStyle(backTopToken)];\n}, token => ({\n  zIndexPopup: token.zIndexBase + 10\n}));"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,cAAc,QAAQ,aAAa;AAC5C;AACA,IAAMC,qBAAqB,GAAG,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